<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
	<!-- ExtJs4.1 lib -->
	<link rel="stylesheet" type="text/css" href="js/ExtJs4.1/resources/css/ext-all.css"></link>
	<link rel="stylesheet" type="text/css" href="js/ExtJs4.1/shared/example.css"></link>
	<script type="text/javascript" src="js/ExtJs4.1/ext-all-debug.js"></script>
	<script type="text/javascript" src="js/ExtJs4.1/shared/examples.js"></script>
	<!-- <script type="text/javascript" src="js/ExtJs4.1/ext-lang-zh_CN.js"></script> -->
	
	<!-- my js files -->
	<!-- <script type="text/javascript" src="scripts/clock.js"></script> -->
<script>
Ext.onReady(function(){	
	var msgBox = Ext.MessageBox.show({
			title: '时间',
			msg: '自动跳走的时间',
			modal: true,
			buttons:Ext.Msg.OK,
			fn:function (){
				Ext.TaskManager.stop(task);
				}		
		})
	var task ={
			run:function(){
				msgBox.updateText('跳动的时间'+Ext.util.Format.date(new Date(),'Y-m-d g:i:s A'));	
			},
			interval:1000
		}
	Ext.TaskManager.start(task);
	
});

</script>
</head>

<body>